use actix_web::scope;
use actix_web::web::{self, ServiceConfig};

pub(crate) mod user_controller;

pub(crate) fn user_config(cfg: &mut ServiceConfig) {
    cfg.service(web::scope("/user")
        .service(user_controller::login_user)
        .service(user_controller::user_add)
        .service(user_controller::user_find_all)
        .service(user_controller::user_find_by_phone)
    );
}